﻿using Foundation;

namespace Poet.ViewModels
{
    /// <summary>
    /// Search Settings View Model.
    /// </summary>
    public class SearchOptionsViewModel : ViewModel
    {
        /// <summary>
        /// Gets or sets a value indicating whether [match case].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [match case]; otherwise, <c>false</c>.
        /// </value>
        public bool MatchCase
        {
            get { return Get(() => MatchCase); }
            set { Set(() => MatchCase, value); }
        }

        /// <summary>
        /// Gets or sets a value indicating whether [match whole word].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [match whole word]; otherwise, <c>false</c>.
        /// </value>
        public bool MatchWholeWord
        {
            get { return Get(() => MatchWholeWord); }
            set { Set(() => MatchWholeWord, value); }
        }

        /// <summary>
        /// Gets or sets a value indicating whether [use regular expression].
        /// </summary>
        /// <value>
        /// 	<c>true</c> if [use regular expression]; otherwise, <c>false</c>.
        /// </value>
        public bool UseRegularExpression
        {
            get { return Get(() => UseRegularExpression); }
            set { Set(() => UseRegularExpression, value); }
        }
    }
}
